<template>
    <div class="car_list" v-loading.fullscreen.lock="fullscreenLoading">
        <div class="outers_TABS">当前位置：<span @click="$router.push({name: 'home'})">首页</span>>购物车</div>
        <div class="car_head">
            <div class="allCheck">
                <div class="select_all" @click="changAllCheck" :class="{'check':allChecked}">
                    <img v-if="allChecked" src="../assets/allselect.png"/>
                </div>
                <span class="txt">全选</span>
            </div>
            <div class="goods">
                <span>商品</span>
            </div>
            <div class="price">单价</div>
            <div class="num">数量</div>
            <div class="price">小计</div>
            <div class="picker">操作</div>
        </div>
        <div class="car_list_infos" v-for="(item,index) in carList" :key="index">
            <div class="car_head car_body">
                <div class="allCheck">
                    <div @click="changCheck(index)" :class="{'check':item.check}" class="select_all">
                        <img v-if="item.check" src="../assets/allselect.png"/>
                    </div>
                    <span class="txt" style="display: inline-block;width: 28px"></span>
                </div>
                <div class="goods">
                    <div class="goods_infos">
                        <div class="img_box">
                            <img :src="item.spec.spec_cover"/>
                        </div>
                        <div class="json_infos">
                            <div class="names">{{item.info.name}}</div>
                        </div>
                    </div>
                </div>
                <div class="price">¥ {{parseFloat(item.info.one_price).toFixed(2)}}元</div>
                <div class="num">
                    <el-input-number @change="munberChang(index)" v-model="item.info.num" :min="1"></el-input-number>
                </div>
                <div class="price">¥ {{ item.info.all_price }}元</div>
                <div class="picker" @click="showRemove(item.id)">移除</div>
            </div>
            <div class="grop_tabs">
                <span class="models">型号：{{ item.info.models}}</span>
                <span class="btns" @click="lookDetail(item)">查看详情</span>
            </div>
        </div>
        <div class="operation">
            <div class="tab_cons">
                <div class="txt_num" @click="$router.push({name: 'groups'})" style="margin-right:35px">继续购物</div>
                <div class="txt_num" style="margin-right: 75px">共<span style="color: #B11E24">{{carList.length}}</span>件商品，已选择<span
                    style="color: #B11E24">{{selectNum}}</span>件
                </div>
                <div @click="ownQuotation" class="txt_num" style="margin-right: 24px">
                    <img src="../assets/personal-red-offer@2x.png">
                    <span>生成报价单</span>
                </div>
                <div class="txt_num" @click="helpUserMark" v-if="userInfo && userInfo.help_quotation && userInfo.help_quotation==1">
                    <img src="../assets/shopping-help@2x.png">
                    <span>帮人生成报价单</span>
                </div>
            </div>
            <div class="tab_cons" style="justify-content: flex-end">
                <div class="total_price" style="margin-right: 67px">合计：<span>¥{{ reversedMessage }}</span></div>
                <div class="car_order" @click="goConfirmOrder(1,1)">去结算</div>
                <div class="place_other" @click="goConfirmOrder(1,2)" v-if="userInfo && userInfo.is_inside && userInfo.is_inside==1">帮人下单</div>
            </div>
        </div>
        <transition name="slide-fade">
            <div class="city_location_box" v-if="downLoadShow">
                <div class="location_box">
                    <div class="tips_title">确认移除</div>
                    <div class="line"></div>
                    <img @click="downLoadShow=false" src="../assets/window-icon-close-black.png" class="close">
                    <div class="content_box_infos">确认将此商品移除购物车</div>
                    <div class="tips_btn">
                        <div @click="downLoadShow=false">取消</div>
                        <div @click="remove">确认</div>
                    </div>
                </div>
            </div>
        </transition>
        <transition name="slide-fade">
            <div class="city_location_box" v-if="detailsShow">
                <div class="chang_tab_list_infos">
                    <img @click="detailsShow=false" class="close_info"
                         src="../assets/window-icon-close-black.png">
                    <div class="json_infos" style="margin-bottom: 29px">{{ carItem.info.name }}</div>
                    <div class="splect_model">
                        <div class="mode_list" :key="indexMode" v-for="(itemMode,indexMode) in carItem.info.custom_spec">
                            <span>{{ itemMode.name }}：{{ itemMode.val }}</span>
                        </div>
                    </div>
                    <div class="download_btn">
                        <div @click="downloadThisFile(carItem.info.pdf)">PDF图纸下载</div>
                        <div @click="downloadThisFile(carItem.info.step)">STEP模型下载</div>
                    </div>
                </div>
            </div>
        </transition>
        <transition name="slide-fade">
            <div class="city_location_box" v-if="helpShow">
                <div class="location_box">
                    <div class="tips_title">帮人生成报价单</div>
                    <div class="line"></div>
                    <img @click="helpShow=false" src="../assets/window-icon-close-black.png" class="close">
                    <div class="content_box_infos_tabcar">
                        <div class="tab_infos_input">
                            <div class="titles">帮人下单</div>
                            <input v-model="phone" placeholder="请输入手机号"/>
                            <div @click="SearchUser" class="btns">确认</div>
                        </div>
                        <!-- <div class="Tab_cars" v-if="outhUserInfo.id">
                            <div class="top">
                                <div style="margin-right: 36px">姓名：{{ outhUserInfo.name }}</div>
                                <div>手机号：{{ outhUserInfo.phone }}</div>
                            </div>
                            <div class="bottomes">单位名称：{{ outhUserInfo.company }}</div>
                        </div> -->
                        <div v-if="selectedAble" style="color: #00b38a;">已选：{{selectedUser}}</div>
                        <div class="Tab_cars" v-for="item in SearchUserList" style="margin-top: 10px;" @click="chooseUser(item)">
                            <div class="top">
                                <div style="margin-right: 36px">姓名：{{ item.name }}</div>
                                <div>手机号：{{ item.phone }}</div>
                            </div>
                            <div class="bottomes">单位名称：{{ item.company }}</div>
                        </div>
                    </div>
                    <div class="tips_btn">
                        <div @click="helpShow=false">取消</div>
                        <div @click="helpOffer">确认</div>
                    </div>
                </div>
            </div>
        </transition>
        <transition name="slide-fade">
            <div class="city_location_box_infos" v-if="success">
                <div class="location_box">
                    <div class="login_icons">
                        <img src="../assets/registered-successfully-red.png">
                        <div>操作成功</div>
                    </div>
                </div>
            </div>
        </transition>
        <transition name="slide-fade">
            <div class="city_location_box" v-if="userQuotationShow">
                <div class="location_box">
                    <div class="tips_title">生成报价单成功</div>
                    <div class="line"></div>
                    <img @click="userQuotationShow=false" src="../assets/window-icon-close-black.png" class="close">
                    <div class="tab_user_quotation">
                        <div class="user_info_item">
                            <div class="left">用户账号：</div>
                            <div class="right">{{helpUserQuotationInfo.phone}}</div>
                        </div>
                        <div class="user_info_item">
                            <div class="left">所在单位：</div>
                            <div class="right">{{helpUserQuotationInfo.company}}</div>
                        </div>
                        <div class="user_info_item">
                            <div class="left">所在部门（系/学院）：</div>
                            <div class="right">{{helpUserQuotationInfo.department}}</div>
                        </div>
                    </div>
                    <div class="tips_btn">
                        <div @click="userQuotationShow=false">取消</div>
                        <div style="width: 106px" @click="helpOfferDwload">下载为PDF</div>
                    </div>
                </div>
            </div>
        </transition>
        <el-dialog :visible.sync="makepdfVisible" center title="操作提示" width="500px">
            <div class="message">报价单生成成功</div>
            <span class="dialog-footer" slot="footer">
                <el-button @click="makepdfVisible = false" size="medium">关 闭</el-button>
                <el-button @click="DownloadPdf" icon="el-icon-download" size="medium" type="success">下 载</el-button>
                <el-button @click="showPdf" icon="el-icon-view" size="medium" type="primary">查 看</el-button>
            </span>
        </el-dialog>
    </div>
</template>

<script>
    import {carDelete, editCartNum, generateQuotation, getCartList, makePdf, searchUser} from "@/api/apis";
    import {mapState} from "vuex";

    export default {
        name: "shoppingCart",
        data() {
            return {
                SearchUserList:[],
                selectedUser:'',
                selectedAble:false,
                carList: [],
                downLoadShow: false,
                car_id: '',
                allChecked: false,
                arrFalseInfo: [],
                detailsShow: false,
                carItem: {},
                helpShow: false,
                outhUserInfo: {},
                phone: '',
                success: false,
                helpUserQuotationInfo: {},
                userQuotationShow: false,
                fullscreenLoading: false,
                makepdfVisible: false,
            }
        },
        computed: {
            ...mapState(["userInfo"]),
            selectNum() {
                let i = 0
                if (this.carList.length) {
                    this.carList.map(item => {
                        if (item.check) {
                            i++
                        }
                    })
                }
                return i
            },
            reversedMessage: function () {
                let prices = 0;
                this.carList.map(item => {
                    if (item.check) {
                        prices += parseFloat(item.info.all_price);
                    }
                });
                return parseFloat(prices).toFixed(2);
            },
            choiceCar() {
                if (this.arrFalseInfo.length == this.carList.length) {
                    return false
                }
                return true
            },
            carIdLsit() {
                let arr = [];
                this.carList.map(item => {
                    if (item.check) {
                        arr.push(item.id)
                    }
                });
                return arr
            }
        },
        mounted() {
            this.GetCarList()
        },
        methods: {
            helpOfferDwload() {
                this.fullscreenLoading = true
                let data = {quotation_id: this.helpUserQuotationInfo.quotation_id,}
                makePdf(data).then(res => {
                    this.fullscreenLoading = false
                    this.userQuotationShow = false
                    window.open(res.data.download)
                    this.GetCarList()
                })
            },
            chooseUser(item){
                this.outhUserInfo.id = item.id;
                this.selectedUser = item.name+'--'+item.company
                this.selectedAble = true
            },
            SearchUser() {
                let data = {phone: this.phone}
                searchUser(data).then(res => {
                    this.SearchUserList = res.data
                })
            },
            goConfirmOrder(e, i) {
                if (this.choiceCar) {
                    this.$router.push({name: 'confirmOrder', query: {type: e, car_id_list: JSON.stringify(this.carIdLsit), user_type: i}})
                } else {
                    this.$message.warning('请勾选你要操作的产品')
                }
            },
            //自己生成报价单
            ownQuotation() {
                this.outhUserInfo = {}
                if (this.choiceCar) {
                    this.makeQuotation()
                } else {
                    this.$message.warning('请勾选你要操作的产品')
                }
            },
            helpUserMark() {
                if (this.choiceCar) {
                    this.helpShow = true
                } else {
                    this.$message.warning('请勾选你要操作的产品')
                }
            },
            //帮人生成报价单
            helpOffer() {
                if (this.choiceCar) {
                    if (this.outhUserInfo.id) {
                        this.makeQuotation(this.outhUserInfo.id)
                    } else {
                        this.$message.warning('请搜索你要帮助下单的人员')
                    }
                } else {
                    this.$message.warning('请勾选你要操作的产品')
                }
            },
            //报价单
            makeQuotation(user_id) {
                this.fullscreenLoading = true
                let data = {ids: this.carIdLsit, user_id: user_id}
                generateQuotation(data).then(res => {
                    if (user_id) {
                        this.helpUserQuotationInfo = res.data
                    } else {
                        this.$router.push({name: 'quotation'});
                    }
                    this.helpShow = false
                    this.userQuotationShow = true
                    this.fullscreenLoading = false
                })
            },
            lookDetail(e) {
                this.carItem = e
                this.detailsShow = true
            },
            downloadThisFile(file) {
                if (file) {
                    window.open(file)
                } else {
                    this.$message.warning('当前型号没有文件可以下载')
                }
            },
            //单选、控制全选
            changCheck(e) {
                this.carList[e].check = !this.carList[e].check
                // 当子选项全选中时 全选按钮也要选中 反之则不选中
                let arrTrue = []  // 定义两个空数组 当子选项是选中的状态则放入arrTrue数组中反之放进arrFalse里
                let arrFalse = []
                this.arrFalseInfo = []
                this.carList.map(items => {
                    if (items.check) {
                        arrTrue.push(items.check)
                    } else {
                        arrFalse.push(items.check)
                        this.arrFalseInfo.push(items.check)
                    }
                })
                // 当arrTrue长度等于购物车列表的数组的长度时，说明全部选中
                if (arrTrue.length == this.carList.length) {
                    this.allChecked = true
                }
                // 当arrFalse 长度大于0时 说明其中有 没有勾选的子选项
                if (arrFalse.length > 0) {
                    this.allChecked = false
                }
            },
            //全选/反选
            changAllCheck() {
                this.allChecked = !this.allChecked
                this.carList.map(item => {
                    !this.allChecked ? item.check = false : item.check = true
                })
                if (this.allChecked) {
                    this.arrFalseInfo = []
                } else {
                    this.arrFalseInfo.length = this.carList.length
                }
            },
            remove() {
                let data = {
                    id: this.car_id,
                }
                carDelete(data).then((res) => {
                    this.GetCarList()
                    this.downLoadShow = false
                })
            },
            showRemove(e) {
                this.car_id = e
                this.downLoadShow = true
            },
            GetCarList() {
                getCartList().then(res => {
                    this.$store.commit('changeCartNumber');
                    if (res.data.length) {
                        res.data.map(item => {
                            item.check = false
                            item.old_price = item.info.one_price
                        })
                    }
                    this.carList = res.data
                    this.arrFalseInfo.length = this.carList.length
                })
            },
            munberChang(e) {
                let data = {
                    id: this.carList[e].id,
                    num: this.carList[e].info.num
                }
                editCartNum(data).then(res => {
                    // this.$store.commit('GetUserInfo');
                })
                this.priceChang(this.carList[e].info.num, e)
            },
            //价格改变
            priceChang(num, index) {
                let obj = this.carList[index].info
                let onePrice = 0;
                if (obj.more_price.length) {
                    obj.more_price.map(items => {
                        if (num >= items.num && onePrice <= 0) {
                            onePrice = items.price;
                        }
                    })
                }
                if (onePrice <= 0) {
                    onePrice = obj.old_price;
                }
                obj.one_price = onePrice;
                obj.all_price = parseFloat(onePrice * num).toFixed(2);
            },
            DownloadPdf() {
                window.open(this.makepdfData.download);
            },
            showPdf() {
                window.open(this.makepdfData.show);
            }
        }
    }
</script>
<style lang="less">
    .car_list {
        .el-input-number {
            .el-input__inner {
                line-height: 28px;
            }
        }
    }
</style>
<style scoped lang="less">
    .car_list {
        cursor: pointer;
        width: 1200px;
        margin: 0 auto;
        min-height: calc(100vh - 102px);
        padding-bottom: 80px;
        padding-top: 22px;
        
        .outers_TABS {
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #000000;
            margin-bottom: 31px;
        }
        
        .crumbs {
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #000000;
            margin-bottom: 29px;
        }
        
        .car_head {
            height: 36px;
            background: #000000;
            display: flex;
            align-items: center;
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #FFFFFF;
            
            div {
                text-align: center;
            }
            
            .allCheck {
                width: 90px;
                display: flex;
                align-items: center;
                justify-content: center;
                
                .select_all {
                    width: 16px;
                    height: 16px;
                    border: 1px solid #FFFFFF;
                    box-sizing: border-box;
                    border-radius: 1px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-right: 10px;
                    
                    img {
                        width: 10px;
                        height: 7px;
                    }
                }
                
                .check {
                    border-color: #B11E24 !important;
                    background: #B11E24;
                }
            }
            
            .goods {
                width: 500px;
                text-align: left;
                
                span {
                    margin-left: 72px;
                }
            }
            
            .num {
                width: 100px;
                
                /deep/ .el-input {
                    height: 28px;
                }
                
                /deep/ .el-input-number__decrease:hover {
                    color: #000000;
                }
                
                /deep/ .el-input-number__increase:hover {
                    color: #000000;
                }
                
                /deep/ .el-input-number__decrease:hover:not(.is-disabled) ~ .el-input .el-input__inner:not(.is-disabled) {
                    border-color: #000000;
                }
                
                /deep/ .el-input-number__increase:hover:not(.is-disabled) ~ .el-input .el-input__inner:not(.is-disabled) {
                    border-color: #000000;
                }
                
                /deep/ .el-input-number__decrease {
                    width: 33%;
                    background: #FFFFFF;
                    border-color: #FFFFFF;
                    color: #000000;
                    height: 25px;
                    box-sizing: border-box;
                    line-height: 25px;
                }
                
                /deep/ .el-input-number__increase {
                    width: 33%;
                    background: #FFFFFF;
                    border-color: #FFFFFF;
                    color: #000000;
                    height: 25px;
                    box-sizing: border-box;
                    line-height: 25px;
                }
                
                /deep/ .el-input-number .el-input__inner {
                    padding: 0;
                }
                
                /deep/ .el-input-number {
                    width: 100%;
                    border-color: #000000;
                    background-color: #FFFFFF;
                    line-height: 28px;
                }
                
                /deep/ .el-input__inner {
                    background-color: #FFFFFF;
                    border-color: #000000;
                    height: 28px;
                }
                
                /deep/ el-input__inner:focus {
                    border-color: #FFFFFF;
                }
            }
            
            .price {
                width: 200px;
            }
            
            .picker {
                width: 110px;
            }
        }
        
        .car_list_infos {
            padding: 30px 0;
            border-bottom: 1px solid #C7C7C7;
            box-sizing: border-box;
            
            .grop_tabs {
                display: flex;
                align-items: center;
                margin-top: 24px;
                margin-left: 164px;
                
                .models {
                    font-size: 12px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    color: #000000;
                    margin-left: 0;
                }
                
                .btns {
                    margin-left: 12px;
                    display: inline-block;
                    width: 80px;
                    height: 28px;
                    background: #000000;
                    font-size: 12px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    line-height: 28px;
                    color: #FFFFFF;
                    text-align: center;
                }
                
                .btns:hover {
                    background: #B11E24;
                }
            }
        }
        
        .operation {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 30px;
            
            .tab_cons {
                display: flex;
                align-items: center;
            }
            
            .txt_num {
                font-size: 14px;
                font-family: Microsoft YaHei;
                font-weight: 400;
                color: #000000;
                display: flex;
                align-items: center;
                
                img {
                    width: 20px;
                    height: 22px;
                    margin-right: 10px;
                }
            }
            
            .total_price {
                font-size: 14px;
                font-family: Microsoft YaHei;
                font-weight: 400;
                color: #000000;
                min-width: 116px;
                
                span {
                    font-size: 24px;
                    font-family: Microsoft YaHei;
                    font-weight: bold;
                    color: #B11E24;
                }
            }
            
            .car_order {
                width: 120px;
                height: 43px;
                background: #B11E24;
                font-size: 18px;
                font-family: Microsoft YaHei;
                font-weight: 400;
                line-height: 43px;
                color: #FFFFFF;
                text-align: center;
                margin-right: 10px;
            }
            
            .place_other {
                width: 120px;
                height: 43px;
                border: 1px solid #000000;
                box-sizing: border-box;
                font-size: 18px;
                font-family: Microsoft YaHei;
                font-weight: 400;
                line-height: 43px;
                color: #000000;
                text-align: center;
            }
        }
        
        .car_body {
            background: #FFFFFF;
            color: black;
            height: auto;
            
            .allCheck {
                .select_all {
                    border-color: #000000;
                }
            }
            
            .goods {
                text-align: left;
                
                .goods_infos {
                    display: flex;
                    
                    .img_box {
                        width: 62px;
                        height: 62px;
                        margin-right: 10px;
                        
                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                    }
                }
                
                .json_infos {
                    width: 340px;
                    
                    .names {
                        font-size: 12px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        line-height: 20px;
                        color: #000000;
                        white-space: pre-wrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        display: -webkit-box;
                        -webkit-line-clamp: 3;
                        -webkit-box-orient: vertical;
                    }
                }
            }
        }
        
        .city_location_box {
            position: fixed;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.21);
            left: 0;
            bottom: 0;
            z-index: 5;
            
            .chang_tab_list_infos {
                width: 1200px;
                background: #FFFFFF;
                border: 1px solid #9D9D9D;
                box-sizing: border-box;
                padding: 29px 30px 39px;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                z-index: 6;
                
                .json_infos {
                    font-size: 14px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    color: #000000;
                    white-space: pre-wrap;
                }
                
                .splect_model {
                    display: flex;
                    flex-wrap: wrap;
                    
                    .mode_list {
                        margin-right: 54px;
                        width: 329px;
                        margin-bottom: 38px;
                    }
                    
                    .mode_list:nth-child(3n) {
                        margin-right: 0;
                    }
                }
                
                .download_btn {
                    display: flex;
                    
                    div {
                        width: 178px;
                        height: 43px;
                        background: #9D9D9D;
                        margin-right: 30px;
                        line-height: 43px;
                        text-align: center;
                        font-size: 16px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #FFFFFF;
                    }
                    
                    div:first-child {
                        background: #B11E24;
                    }
                }
                
                .close_info {
                    width: 18px;
                    height: 18px;
                    position: absolute;
                    top: 10px;
                    right: 10px;
                }
            }
            
            .location_box {
                width: 480px;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                border: 1px solid #9D9D9D;
                padding: 32px 0 28px;
                z-index: 6;
                background: #FFFFFF;
                
                .tips_title {
                    font-size: 16px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    color: #000000;
                    margin-bottom: 17px;
                    text-align: center;
                }
                
                .line {
                    width: 477px;
                    height: 2px;
                    background: #E9E9E9;
                    //border: 1px solid #E9E9E9;
                    box-sizing: border-box;
                    margin-bottom: 37px;
                }
                
                .content_box_infos {
                    padding: 0 13px;
                    margin-bottom: 27px;
                    text-align: center;
                    font-size: 14px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    color: #000000;
                }
                
                .tips_btn {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    
                    div {
                        width: 69px;
                        height: 30px;
                        font-size: 14px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        line-height: 30px;
                        text-align: center;
                    }
                    
                    div:nth-child(1) {
                        border: 1px solid #C7C7C7;
                        color: #9D9D9D;
                        box-sizing: border-box;
                        margin-right: 10px;
                    }
                    
                    div:nth-child(2) {
                        color: #FFFFFF;
                        background: #B11E24;
                    }
                }
                
                .close {
                    width: 18px;
                    height: 18px;
                    position: absolute;
                    z-index: 7;
                    right: 10px;
                    cursor: pointer;
                    top: 10px;
                }
                
                .content_box_infos_tabcar {
                    width: 342px;
                    margin: 0 auto 23px;
                    
                    .tab_infos_input {
                        margin-bottom: 20px;
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        
                        .titles {
                            font-size: 16px;
                            font-family: Microsoft YaHei;
                            font-weight: 400;
                            color: #000000;
                        }
                        
                        input {
                            width: 165px;
                            height: 30px;
                            background: #FFFFFF;
                            padding: 0 12px;
                            border: 1px solid #C7C7C7;
                            font-size: 12px;
                            font-family: Microsoft YaHei;
                            font-weight: 400;
                            color: #C7C7C7;
                        }
                        
                        .btns {
                            width: 68px;
                            height: 30px;
                            background: #B11E24;
                            font-size: 14px;
                            font-family: Microsoft YaHei;
                            font-weight: 400;
                            line-height: 30px;
                            color: #FFFFFF;
                            text-align: center;
                        }
                    }
                    
                    .Tab_cars {
                        padding: 17px 20px;
                        font-size: 14px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #000000;
                        background: #F7F7F7;
                        
                        .top {
                            display: flex;
                            margin-bottom: 10px;
                        }
                    }
                }
            }
            
            .tab_user_quotation {
                padding: 0 38px;
                margin-bottom: 19px;
                
                .user_info_item {
                    display: flex;
                    align-items: center;
                    font-size: 14px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    color: #000000;
                    margin-bottom: 10px;
                    
                    .left {
                        width: 150px;
                        text-align: right;
                        
                    }
                }
            }
        }
        
        .city_location_box_infos {
            position: fixed;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.21);
            left: 0;
            bottom: 0;
            z-index: 5;
            
            .location_box {
                width: 480px;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                border: 1px solid #9D9D9D;
                z-index: 6;
                background: #FFFFFF;
                height: 331px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 8px;
                
                .colses {
                    position: absolute;
                    top: 10px;
                    right: 10px;
                    width: 18px;
                    height: 18px;
                }
                
                .login_icons {
                    text-align: center;
                    
                    img {
                        width: 68px;
                        height: 68px;
                        margin-bottom: 20px;
                    }
                    
                    div {
                        font-size: 20px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #000000;
                    }
                }
            }
        }
    }
</style>
